import React from 'react';
import ReactDOM from 'react-dom';

import {Provider} from "react-redux";
import "./lib/hotcss.js";
import "./css/reset.css";
import "./font/iconfont.css";
import "./css/base.css";
import store from "./redux/store.js"

import App from './App';
import registerServiceWorker from './registerServiceWorker';


function render(){
	ReactDOM.render(
		<Provider store={store}>
			<App />
		</Provider>, 
		document.getElementById('root')
	)
}
render();

store.subscribe(render);

registerServiceWorker();